{extend name="main/index" /}
{block name="main"}
<div class="main-content">
    <div class="breadcrumbs" id="breadcrumbs">
        <script type="text/javascript">
            try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
        </script>

        <ul class="breadcrumb">
            <li>
                <i class="icon-home home-icon"></i>
                <a href="{:url('/admin/mechanical/costIndex')}">机械费用列表</a>
            </li>
        </ul><!-- .breadcrumb -->

        <div class="nav-search" id="nav-search">
            <form class="form-search">
                <span class="input-icon">
                    <input type="text" placeholder="Search ..." class="nav-search-input" id="nav-search-input" autocomplete="off" />
                    <i class="icon-search nav-search-icon"></i>
                </span>
            </form>
        </div><!-- #nav-search -->
    </div>

    <div class="page-content">
        <h3 class="header smaller lighter blue">机械费用列表</h3>
        <div class="row">
            <div class="col-xs-12">
                <div class="row">
                    <div class="col-xs-12">
                        <div class="table-responsive">
                                <div class="row">
                                    <div class="col-xs-12">
                                        
                                        <div class="table-header">
                                            <!--Results for "Latest Registered Domains"-->
                                        </div>

                                        <div class="table-responsive">
                                            <table id="sample-table-2" class="table table-striped table-bordered table-hover">
                                                <thead>
                                                    <tr>
                                                        <th>ID</th>
                                                        <th>项目名称</th>
                                                        <th>机械名称</th>
                                                        <th>运费</th>
                                                        <th>维修费</th>
                                                        <th>油费</th>
                                                        <th>机械使用费</th>
                                                        <th>总计</th>
                                                        <th>操作栏</th>
                                                        <th>数据管理</th>
                                                    </tr>
                                                </thead>
                                                <tbody>
                                                {volist name="list" id="v"}
                                                <tr>
                                                    <td>{$v['id']}</td>
                                                    <td>{$v['project_name']}</td>
                                                    <td>{$v['machine_name']}</td>
                                                    <td>{$v['freight']}</td>
                                                    <td>{$v['maintenance_cost']}</td>
                                                    <td>{$v['oil_cost']}</td>
                                                    <td>{$v['machine_usage_cost']}</td>
                                                    <td>{$v['total_price']}</td>

                                                    <td>
                                                        <div class="visible-md visible-lg hidden-sm hidden-xs action-buttons">
                                                            <a class="blue" href="{:url('/admin/mechanical/details_cost',['id' => $v['id']])}">
                                                                <button  class="btn btn-xs btn-primary">查看</button>
                                                                <!-- <i class="icon-zoom-in bigger-130"></i> -->
                                                            </a>
                                                            <a class="green" href="{:url('admin/mechanical/mechanical_cost',['id' => $v['id']])}">
                                                                <button  class="btn btn-xs btn-primary">修改</button>
                                                                <!-- <i class="icon-pencil bigger-130"></i> -->
                                                            </a>
                                                             <a class="red del-btncost " data-id="{$v['id']}"  >
                                                                <button class="btn btn-xs btn-danger del-btn">删除</button>
                                                            </a>
                                                            
                                                        </div>

                                                        <div class="visible-xs visible-sm hidden-md hidden-lg">
                                                            <div class="inline position-relative">
                                                                <button class="btn btn-minier btn-yellow dropdown-toggle" data-toggle="dropdown">
                                                                    <i class="icon-caret-down icon-only bigger-120"></i>
                                                                </button>

                                                                <ul class="dropdown-menu dropdown-only-icon dropdown-yellow pull-right dropdown-caret dropdown-close">
                                                                    <li>
                                                                        <a href="#" class="tooltip-info" data-rel="tooltip" title="View">
                                                                                <span class="blue">
                                                                                    <i class="icon-zoom-in bigger-120"></i>
                                                                                </span>
                                                                        </a>
                                                                    </li>

                                                                    <li>
                                                                        <a href="#" class="tooltip-success" data-rel="tooltip" title="Edit">
                                                                                <span class="green">
                                                                                    <i class="icon-edit bigger-120"></i>
                                                                                </span>
                                                                        </a>
                                                                    </li>

                                                                    <li>
                                                                        <a href="" class="tooltip-error" data-rel="tooltip" title="Delete">
                                                                                <span class="red">
                                                                                    <i class="icon-trash bigger-120"></i>
                                                                                </span>
                                                                        </a>
                                                                    </li>
                                                                </ul>
                                                            </div>
                                                        </div>
                                                    </td>
                                                    <td>

                                                        <a class="blue" href="{:url('/admin/Mechanical/getExccel',['id' => $v['id']])}"><span  class="btn btn-xs btn-primary">导出数据</span>
                                                        </a>

                                                        <a class="blue" href="{:url('/admin/Mechanical/forExccel',['id' => $v['id']])}"><span  class="btn btn-xs btn-primary">导入数据</span>
                                                        </a>

                                                    </td>
                                                </tr>
                                                {/volist}
                                                </tbody>

                                            </table>
                                        </div>
                                    </div>
                                </div>
                    {$page}
                        </div>
                    </div>
                </div>
            </div><!-- /.col -->
        </div><!-- /.row -->
    </div><!-- /.page-content -->
</div>
{/block}

{block name="myjs"}
    <script src="/static/admin/assets/meijs/admin_mechanical.js"></script>

{/block}